# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=rvlprog
pkgver=0.91
pkgrel=1
pkgdesc="CLI tool for REVELPROG-IS programmer"
url="https://gitlab.com/spectrum70/rvlprog"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="libusb-dev"
source="https://gitlab.com/spectrum70/rvlprog/-/archive/$pkgver/rvlprog-$pkgver.tar.gz"

build() {
	export LIBS="-lusb-1.0"
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="cef54e0980345a4a814cbee0dd6a49b10fcf6d9a5660344abba3d2bf79188f5c20298a2befe3fe8ff99df55f01da33a233ca4d17898ce618dd0e456fa51c87db  rvlprog-0.91.tar.gz"
